using System;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Dimok.Exceptions;
using Data;

namespace Dimok.Aspx.Manager.Lib.Controls {
	public partial class TrackerTransactions : System.Web.UI.UserControl {

		public int TrackerRequestID = 0;

		protected void Page_Load(object sender, System.EventArgs e) {
			try{
				ltrStatuses.Text = SQL.BuildSelectOptions(UOX.dbRaw,"SELECT v_Menu.MenuID, v_Menu.MenuName FROM t_Menu INNER JOIN v_Menu_10 AS v_Menu ON t_Menu.MenuID = v_Menu.ParentMenuID WHERE     (t_Menu.Params = 't_TrackerTransaction') ORDER BY v_Menu.WorkFlowIndex","MenuName","MenuID");
				ltrTransactions.Text = new UOX().Tracker(TrackerRequestID).TransactionsByTechnician();

				Attributes.Add("id",ID);
				ltrAttrs.Text = User.UserPage.BuildAttributes(Attributes);
			}catch(Exception exc){
				throw new ClientException(exc);
			}
		}

		#region Web Form Designer generated code
		override protected void OnInit(EventArgs e) {
			//
			// CODEGEN: This call is required by the ASP.NET Web Form Designer.
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		/// <summary>
		///		Required method for Designer support - do not modify
		///		the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent() {
		}
		#endregion
	}
}
